class PeopleClass():
    def __init__(self,name,race,Country,height,weight):
        self.name=name
        self.race=race
        self.Country=Country
        self.height=height
        self.weight=weight
    def print_score(self):
        print('姓名:{},人种:{},国家:{},身高:{},体重:{}'.format(self.name,self.race,self.Country,self.height,self.weight))

stu1=PeopleClass('小明','黄种','中国',180,70)
stu1.print_score()

# 方法二、

class bmi:
    def __init__(self,  height, weight):
        self.height = height
        self.weight = weight
    def bmi_oniupi(self):
        x=int(self.weight)
        y=int(self.height)
        z=y/100
        d=z*z
        bmi1 = x / d
        print('bmi指数是{}'.format(bmi1))
        if bmi1 < 18.5:
            print('你太瘦了')
        elif 18.5 <= bmi1 < 23.9:
            print('哦六批，完美身材')
        elif bmi1 > 23.9:
            print('多捞啊，胖的不谈了')
b=bmi('170','70')
b.bmi_oniupi()